package de.doegel.common.model;

import android.graphics.Bitmap;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;

public class News {
	
	public static final String contactNameKey = "contact_name";
	public static final String contactIdKey = "contact_id";
	public static final String imageURLKey = "hash";
	public static final String typeKey = "type";
	public static final String refIdsKey = "ref_id";
	public static final String refNamesKey = "ref_name";
	public static final String timestampKey = "time";
	public static final String sexKey = "geschlecht";

	public News() {
		// needed by ormlite
	}
	
	@DatabaseField(generatedId = true)
	public int id;
	
	@DatabaseField
	public String contactName;
	
	@DatabaseField
	public String contactId;

	@DatabaseField
	public String imageURL;

	@DatabaseField
	public String type;

	@DatabaseField
	public String refIds;

	@DatabaseField
	public String refNames;

	@DatabaseField
	public String timestamp;

	@DatabaseField
	public String sex;

	@DatabaseField(dataType=DataType.SERIALIZABLE)
	public byte[] imageBuffer;
	
	public Bitmap image;
}
